]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 01/14] lib-mail: Reset charset translation buffer between MIME parts
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 28 Feb 2026 08:27:19 +0000 (10:27 +0200)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit53e6ddc9f8fb954fd4dd7a17052a16905cbe1c9a
tree39f354cc87242123772fab3932df1b3da36eebf0
parenteeb3b3bc073e12bcfee63a270cc992d2fe6159e7
[PATCH 01/14] lib-mail: Reset charset translation buffer between MIME parts

If MIME part ended with an incomplete charset translation, the buffer was
kept for the next MIME part. This could have produced garbage in the next
MIME part, or a crash.

Fixes:
Panic: file message-decoder.c: line 232 (translation_buf_decode): assertion failed: (orig_size < CHARSET_MAX_PENDING_BUF_SIZE)

Gbp-Pq: Name 0001-lib-mail-Reset-charset-translation-buffer-between-MI.patch
src/lib-mail/message-decoder.c
src/lib-mail/test-message-decoder.c